<?php
$contents = $this->contents;
$parameters = $this->parameters;
$baseUrl = $this->base_url;

?>
<div class="navtopic"><span>顺德有名堂</span></div>
<div class="item_a">
    <?php
        if($this->parameters->getImageCount()):
        for($i = $this->parameters->getStartImageIndex(); $i < $this->parameters->getEndImageIndex(); $i++):
    ?>
    <ol>
        <a href="<?php echo $this->getUrl(array('id'=>$contents[$i]->getId()), 'detail', 'content', 'article')?>">
           <img src="<?php echo $baseUrl.substr($contents[$i]->getFirstPicture(), 1) ?>"
             width="<?php echo $parameters['image_width']?>"
             height="<?php echo $parameters['image_height'] ?>" align="left" />
        </a>
    </ol>
    <dl>
            <dt><a href="<?php echo $this->getUrl(array('id'=>$contents[$i]->getId()), 'detail', 'content', 'article')?>"><?php echo $contents[$i]->getTitle()?></a></dt>
            <dd><?php echo mb_substr($contents[$i]->getIntroduction(),0,$parameters['introduction_size']).'...' ?>
            <a href="<?php echo $this->getUrl(array('id'=>$contents[$i]->getId()), 'detail', 'content', 'article')?>">详情>></a>
        </dd>
    </dl>
    <?php
        endfor;
        endif;
        if($this->parameters->getIntroductionCount()):
        for($i = $this->parameters->getStartIntroductionIndex(); $i < $this->parameters->getEndIntroductionIndex(); $i++):
    ?>
            <dd><?php echo mb_substr($contents[$i]->getIntroduction(), 0, $parameters['introduction_size']).'...' ?>
                <a href="<?php echo $this->getUrl(array('id'=>$contents[$i]['id']), 'detail', 'content', 'article')?>">详情>></a>
            </dd>
    <?php
        endfor;
        endif;
    ?>
    <ul>
        <?php for ($i = $parameters->getStartNameIndex(); $i < $parameters->getEndNameIndex(); $i++):?>
            <li><a href="<?php echo $this->getUrl(array('id'=>$contents[$i]['category_id']), 'conlist', 'content', 'article') ?>">[<?php echo $contents[$i]->getCategoryName() ?>]</a><a href="<?php echo $this->getUrl(array('id'=>$contents[$i]['id']), 'detail', 'content', 'article') ?>"><?php echo mb_substr($contents[$i]->getTitle(),0,18) ?></a></li>
        <?php endfor;?>
    </ul>
</div>
<p class="br"></p>